package creation.templatemethod.common;

/**
 * 场景类
 *
 * @author wangjinqiang
 * @date 2019-08-04
 */
public class Client {
    public static void main(String[] args) {
        AbstractClass c1 = new ConcreteClass1();
        AbstractClass c2 = new ConcreteClass2();
        // 调用模板方法
        c1.templateMethod();
        c2.templateMethod();
    }
}
